/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package heitor.hosts.servicos;

/**
 *
 * @author heitorsantos
 */

import java.util.List;
import javax.persistence.EntityManager;

public interface DAO <T,I>{
    T save(T entity);
    
    boolean remove(Class <T> classe, I pk);
    
    T getById(Class<T> classe, I pk);
    
    List <T> getAll(Class<T> classe);
    
    EntityManager getEntityManager();
}
